how to diagnose osteoporosis